<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get detailed information about the cache key</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.apcu-inc.html">« apcu_inc</a></li>
      <li style="float: right;"><a href="function.apcu-sma-info.html">apcu_sma_info »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.apcu.html">APCu 函数</a></li>
    <li>Get detailed information about the cache key</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.apcu-key-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apcu_key_info</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">apcu_key_info</span> &mdash; <span class="dc-title">
   Get detailed information about the cache key
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apcu-key-info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apcu_key_info</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>): <span class="type"><span class="type">?</span><span class="type">array</span></span></div>

  <p class="para rdfs-comment">
   Get detailed information about the cache key
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apcu-key-info-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">key</code></dt>

     <dd>

      <p class="para">
       Get detailed information about the cache key
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apcu-key-info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   An array containing the detailed information about the cache key, or <strong><code>null</code></strong> if the key does not exist.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.apcu-key-info-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-508">
    <p><strong>示例 #1 A <span class="function"><strong>apcu_key_info()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />apcu_add</span><span style="color: #007700">(</span><span style="color: #DD0000">'a'</span><span style="color: #007700">,</span><span style="color: #DD0000">'b'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">apcu_key_info</span><span style="color: #007700">(</span><span style="color: #DD0000">'a'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
array(7) {
  [&quot;hits&quot;]=&gt;
  int(0)
  [&quot;access_time&quot;]=&gt;
  int(1606701783)
  [&quot;mtime&quot;]=&gt;
  int(1606701783)
  [&quot;creation_time&quot;]=&gt;
  int(1606701783)
  [&quot;deletion_time&quot;]=&gt;
  int(0)
  [&quot;ttl&quot;]=&gt;
  int(0)
  [&quot;refs&quot;]=&gt;
  int(0)
}
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apcu-key-info-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.apcu-store.html" class="function" rel="rdfs-seeAlso">apcu_store()</a> - 缓存一个变量到存储中</span></li>
    <li class="member"><span class="function"><a href="function.apcu-fetch.html" class="function" rel="rdfs-seeAlso">apcu_fetch()</a> - Fetch a stored variable from the cache</span></li>
    <li class="member"><span class="function"><a href="function.apcu-delete.html" class="function" rel="rdfs-seeAlso">apcu_delete()</a> - Removes a stored variable from the cache</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>